package cn.group.domain;

import java.io.Serializable;
import java.util.List;

public class Teacher extends User implements Serializable {
    private Integer id;
    private String name;
    private String sex;
    private String phone;
    private Classes classes;

    public Teacher() {
    }

    public Teacher(String username, String password, Integer delete, String headimg, Role role, Integer id, String name, String sex, String phone) {
        super(username, password, delete, headimg, role);
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.phone = phone;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Classes getClasses() {
        return classes;
    }

    public void setClasses(Classes classes) {
        this.classes = classes;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                super.toString()+
                ",id=" + id +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", phone='" + phone + '\'' +
                ", classes=" + classes +
                '}';
    }
}
